namespace Repositories.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addPaymentInsurance_Foreign : DbMigration
    {
        public override void Up()
        {
            RenameColumn(table: "dbo.Debit", name: "Insurance_ID", newName: "InsuranceId");
            RenameColumn(table: "dbo.Debit", name: "Payment_ID", newName: "PaymentId");
            RenameIndex(table: "dbo.Debit", name: "IX_Payment_ID", newName: "IX_PaymentId");
            RenameIndex(table: "dbo.Debit", name: "IX_Insurance_ID", newName: "IX_InsuranceId");
        }
        
        public override void Down()
        {
            RenameIndex(table: "dbo.Debit", name: "IX_InsuranceId", newName: "IX_Insurance_ID");
            RenameIndex(table: "dbo.Debit", name: "IX_PaymentId", newName: "IX_Payment_ID");
            RenameColumn(table: "dbo.Debit", name: "PaymentId", newName: "Payment_ID");
            RenameColumn(table: "dbo.Debit", name: "InsuranceId", newName: "Insurance_ID");
        }
    }
}
